﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OF.Component.BLL;
using OF.Component.Model;
using OF.Component.Base;
using OF.Utility;
namespace _2010web.Manage.InfoManage
{
    public partial class Authorityuserlist : OpBasePage
    {
        protected int intCount = 0;
        protected string strName = "";
        protected int intSystemID = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            SetPageCode(101, 10101);
            if (!Page.IsPostBack)
            {
                intSystemID = RequestUtility.GetQueryInt("sysid", 0);
                MyBind();
                //this.ddlSystem.SelectedValue = intSystemID.ToString();
            }
        }

        private void MyBind()
        {
            string where = "1=1 and IsActive=1";
            int intPageIndex = RequestUtility.GetQueryInt("page", 1);
            strName = RequestUtility.GetQueryString("name");
            if (strName != "")
            {
                where += " and charindex('" + strName + "',[OpUserName])>0";
            }


            IList<OpUserInforInfo> list = OpUserInforOperate.Search(out intCount, intPageIndex, 20, where, "OpUserID", true);

                this.rptList.DataSource = list;
                this.rptList.DataBind();

                AspNetPager1.RecordCount = intCount;
                AspNetPager1.CurrentPageIndex = intPageIndex;
                AspNetPager1.PageSize = 20;
            
        }


    }
}